<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>
<c:set var="ctx" value="${pageContext.request.contextPath}" />

  <table class="tablelist">
    <thead>
      <tr>
        <th class="seltd"><input name="sumId" type="checkbox" onclick="getCheckBox(this);"/>&nbsp;&nbsp;</th>
        <th class="xutd">序号</th>
		<th>操作内容详情</th>
		<th>操作人</th>
		<th>操作外网ip</th>
		<th>数据动作</th>
		<th>日志类型</th>
		<th>创建时间</th>
      </tr>
    </thead>
    <tbody>
      <c:forEach items="${pager.result}" var="item" varStatus="index">
	      <tr>
	        <td><input name="idArray" type="checkbox" value="${item.id}" /></td>
	        <td>${(index.index+1)+pager.pageParameter.pageSize*(pager.pageParameter.currentPage-1)}</td>
            <td>${item.logContent}</td>
            <td>${item.admin.systemUserName}&nbsp;${item.admin.systemRealName}</td>
            <td>${item.logIp}</td>
            <td>
                <c:if test="${item.logDataCode == 'READ'}">查看</c:if>
                <c:if test="${item.logDataCode == 'UPDATE'}">更新</c:if>
                <c:if test="${item.logDataCode == 'INSERT'}">新增</c:if>
                <c:if test="${item.logDataCode == 'DELETE'}">删除</c:if>
            </td>
            <td>
                <c:if test="${item.logTypeCode == 'WEB'}">网站管理</c:if>
                <c:if test="${item.logTypeCode == 'MANAGE'}">服务管理</c:if>
                <c:if test="${item.logTypeCode == 'LOGIN'}">登录系统</c:if>
            </td>
            <td>${item.createTime}</td>
	      </tr>
      </c:forEach>
      <c:if test="${fn:length(pager.result)==0}">
       	<TR style="background-color:#FFFACD;">
		  <TD style="text-align:center;" colspan="9" ><font color="red">未查询到数据</font></TD>
        </TR>
       </c:if>
    </tbody>
  </table>
  <script type="text/javascript">
	$('.tablelist tbody tr:odd').addClass('odd');
  </script>
 <jsp:include page="/WEB-INF/common/page.jsp" />